//
//  InterfaceSquareArea.m
//  Portable Traffic Signal Assistor
//
//  Created by Ding on 12/29/12.
//  Copyright (c) 2012 TTU. All rights reserved.
//

#import "InterfaceSquareArea.h"

@implementation InterfaceSquareArea
@synthesize topLeftPoint=_topLeftPoint;
@synthesize topRightPoint=_topRightPoint;
@synthesize bottomLeftPoint=_bottomLeftPoint;
@synthesize bottomRightPoint=_bottomRightPoint;
@synthesize color=_color;

- (id) initWithTopLeftPoint:(InterfacePoint *)topLeftPoint topRightPoint:(InterfacePoint *)topRightPoint bottomLeftPoint:(InterfacePoint *)bottomLeftPoint bottomRightPoint:(InterfacePoint *)bottomRightPoint color:(UIColor *)color
{
    self=[super init];
    if (self) {
        self.topLeftPoint=topLeftPoint;
        self.topRightPoint=topRightPoint;
        self.bottomLeftPoint=bottomLeftPoint;
        self.bottomRightPoint=bottomRightPoint;
        self.color=color;
//        self.dashed=NO;
    }
    return self;
}

- (void)dealloc
{
    [_topLeftPoint release];
    [_topRightPoint release];
    [_bottomRightPoint release];
    [_bottomLeftPoint release];
    [_color release];
    [super dealloc];
}

@end
